@import '~antd/lib/style/themes/default.less';

@header-height: 64px;
@menu-item-border: 2px;
@site-text-color: #314659;
@site-border-color-split: #ebedf0;

.menu {
  line-height: 64px;
  display: inline-block;
  float: right;
}

.emptyMenu {
  text-align: center;
  color: #bfbfbf;
  margin: 50px 0;
}

.header {
  position: relative;
  z-index: 10;
  max-width: 100%;
  padding: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(240, 241, 242, 65);

  &.home-nav-bottom {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: #ebedee;

    .search {
      border-left-color: #ebedee;
    }

    a {
      color: @site-text-color;
    }
  }

  .header-link {
    color: @site-text-color;
  }

  .ant-menu-item-active .header-link {
    color: @primary-color;
  }
}

.logo {
  font-weight: bold;
  font-size: 16px;
  color: #000;
  height: @header-height;
  padding-left: 24px;
  overflow: hidden;
  line-height: @header-height;
  white-space: nowrap;
  text-decoration: none;

  img {
    height: 32px;
    margin-right: 10px;
  }

  img + img {
    position: relative;
    top: 1px;
    height: 16px;
  }
}

.search {
  margin-right: 20px;
  width: 250px;

  & > input {
    border-radius: 20px;
  }
}

@media only screen and (max-width: @screen-xl) {
  .search {
    display: none;
  }

  .logo {
    padding: 0 40px;
  }
}

@media only screen and (max-width: 767.99px) {
  .header {
    text-align: center;

    .logo {
      float: initial;

      img:last-child {
        margin-right: 0;
      }
    }
  }

  .search {
    display: none;
  }
}

@media only print {
  :global {
    .ant-layout-header {
      display: none;
    }

    .main-menu {
      display: none;
    }

    .toc-affix {
      display: none;
    }

    .main-container {
      padding: 0;
      margin: 0;
      width: 1200px;
    }

    .main-wrapper, .ant-layout {
      padding: 0;
    }
  }
}

:global {
  .ant-menu-horizontal {
    border-bottom: 0px;
  }
}

.header-lang-button,
.version {
  float: right;
  margin-top: 20px;
  margin-left: 16px;
}

.header-lang-button {
  margin-right: 40px;
  color: @text-color;
  border-color: @border-color-base;
}
